

import crm.entity.Activity;
import crm.entity.Client;
import crm.entity.ContactPerson;
import crm.entity.Progress;
import crm.entity.Project;
import java.util.Date;
import java.util.List;

/**
 *
 * @author abet
 */
public interface AppService {
    //Client
    public void saveClient(Client client);
    public void deleteClient(Client client);
    public List<Client> findAllClient();
    public Client findClientById(Integer id);
    public Client findClientByName(String name);
    public List<Client> findClientByCity(String city);   
    public List<Client> findClientByCategory(String category);     
  
   //Contact Person
    public void saveCp(ContactPerson cp);
    public void deleteClient(ContactPerson cp);
    public List<ContactPerson> findAllCp();
    public ContactPerson findCpById(Integer id);
    public ContactPerson findCpByName(String name);
    public List<ContactPerson> findContactPerson(Client client);   
   
   //Activity
    public void saveAct(Activity act);
    public void deleteAct(Activity act);
    public List<Activity> findAllActivity();
    public List<Activity> findActByDate (Date date);
    public List<Activity>findActivity(Client client);
    
   //Project
    public void saveProject (Project project);
    public void deleteProject (Project project);
    public List<Project> findAllProject();
    public Project findProjectByContractNumber (String contnumb);
    public Project findProjectByName (String name);
    public List <Project> findProjectByStartDate (Date startdate);
    public List <Project> findProjectByEndDate (String enddate);
    
    //Progress
    public void saveProgress(Progress progress);
    public void deleteProgress(Progress progress);
    
     
}


